package com.my.sys.repository;

import com.my.sys.model.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by 80002023 on 2016/5/4.
 */
public interface SysUserRepository extends JpaRepository<SysUser, Long> {

    SysUser findByUsernameAndPassword(String username, String password);

    SysUser findByUsername(String username);
}
